﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace QQSDK
{
    public class ThirdSample : SDKBaseSample
    {

        public void doLogFirebaseEvent()
        {
            //测试单值
            FireBaseManager.LogFirebaseEvent("fb_evName");

            //测试字典多值
            Dictionary<string, string> paramDict = new Dictionary<string, string>();
            paramDict.Add("test_param1", "111");
            paramDict.Add("test_param2", "test");
            string jsonPar = JsonMapper.ToJson(paramDict);
            paramDict.Clear();
            FireBaseManager.LogFirebaseEvent("fb_evName2", jsonPar);
        }

        public void doSetFirebaseUserProperty()
        {
            FireBaseManager.SetFirebaseUserProperty("fb_user","fb_userval");
        }

        public void doLogFirebaseRevenueEvent()
        {
            FireBaseManager.LogFirebaseRevenueEvent(0.1,"network","inter");
        }
    }
}